<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>

	<head>
		<!-- Basic page needs -->
		<meta charset="utf-8">
		<meta http-equiv="x-ua-compatible" content="ie=edge">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>缘酒网</title>
		<!-- Mobile specific metas  -->
		<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">

		<!-- CSS Style -->
		<link rel="stylesheet" href="css/stylesheet.css">
		<link rel="stylesheet" href="css/yuanjiu-front.css">
		<script src="js/holder.js"></script>
		<!-- jquery js -->
				<script type="text/javascript" src="js/jquery.min.js"></script>
		<script type="text/javascript">
		$(document).ready(function(){
		$(window).scroll(function(){
		st=$(window).scrollTop();
		pt1=$("#item1").offset().top;
		pt2=$("#item2").offset().top;
		pt3=$("#item3").offset().top;
		pt4=$("#item4").offset().top;
		pt5=$("#item5").offset().top;
		pt6=$("#item6").offset().top;
		pt7=$("#item7").offset().top;
		
		if(st>=pt7)
		{
		$("#YellowWine").removeClass("d");
		}
		else if(st>=pt6)
		{
		$("#YellowWine").addClass("d");
		$("#Beer").removeClass("d");
		}
		
		else if(st>=pt5)
		{
		$("#YellowWine").removeClass("d");
		$("#Beer").addClass("d");
		$("#XO").removeClass("d");
		}
		
		else if(st>=pt4){
		$("#Beer").removeClass("d");
		$("#XO").addClass("d");
		$("#Wine").removeClass("d");
		}
		else if(st>=pt3){
		$("#XO").removeClass("d");
		$("#Wine").addClass("d");
		$("#whitespirit").removeClass("d");
		}
		else if(st>=pt2){
		$("#Wine").removeClass("d");
		$("#whitespirit").addClass("d");
		$("#Like").removeClass("d");
		}
		else if(st>=pt1){
		
		$("#Like").addClass("d");
		$("#whitespirit").removeClass("d");
		}
		else if(st<=pt1)
		{
		$("#Like").removeClass("d");
		}
		});
		});
		</script>
		<style>
			#product-img{width: 100%;margin: 0px;
				
			}
			#menu{width: 88px;height: auto; position: fixed;top: 60%;right: 15px;margin-top: -135px;z-index:9999;}
			#menu ul{display: block;list-style: none;padding: 0px;}
			.d{
			background-color: #DDDDDD;
			}
			
			.div:hover{
			background-color: #DDDDDD;
			}
			#product-img{
				cursor:pointer;
			}
			
		</style>
	</head>

	<body class="cms-index-index cms-home-page">

		<!--right menu-->
		<div id="menu">
	<ul>
	    <li><div id="Like" class="div" style="width:36px;height:36px;border: 1px solid #EBEBEB;"><a href="#item1"><img src="images/Like.png"></a></div></li>
		<li><div id="whitespirit" class="div" style="width:36px;height:36px;border: 1px solid #EBEBEB;"><a href="#item2"> <img src="images/whitespirit.png"></a></div></li>
		<li><div id="Wine" class="div"  style="width:36px;height:36px;border: 1px solid #EBEBEB;"><a href="#item3"><img src="images/Wine.png"></a></div></li>
		<li><div id="XO" class="div" style="width:36px;height:36px;border: 1px solid #EBEBEB;"><a href="#item4"><img src="images/XO.png"></a></div></li>
		<li><div id="Beer" class="div" style="width:36px;height:36px;border: 1px solid #EBEBEB;"><a href="#item5"><img src="images/beer.png"></a></div></li>
		<li><div id="YellowWine" class="div" style="width:36px;height:36px;border: 1px solid #EBEBEB;"><a href="#item6"><img src="images/YellowWine.png"></a></div></li>
	</ul>
</div>
		<!--end right menu -->
		<div id="page">
			<!-- Header -->
			<header>
				<div class="header-container">
					<div class="container">
						<div class="row">
							<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12 hidden-xs">
								<!-- Header Logo -->
								<div class="logo" style="width: 150;height: 90;">
									<h1><a title="缘酒网" href="home"><img class="img-responsive" alt="缘酒网" src="images/logo.png"> </a></h1> </div>
								<!-- End Header Logo -->
							</div>
							<div class="col-lg-6 col-md-4 col-sm-4 col-xs-12 jtv-logo-box">
								
							</div>
							<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12 hidden-xs">
								<div class="search-box">
									<form style="margin: 0px;" action="shop_grids" method="POST" id="search_mini_form" name="Categories">
										<input type="text" placeholder="输入关键词" maxlength="70" name="keyWord" id="search" value="${productVo.keyWord}">
										<button type="button" class="search-btn-bg" onclick="search_mini_form.submit();"><span class="glyphicon glyphicon-search"></span></button>
									</form>
								</div>
							</div>
							<div id="header" class="col-lg-3 col-md-4 col-sm-4 col-xs-12" style="padding-left: 0px;padding-right: 0px;">
							<div id = "header-bar" class="col-xs-12 hidden-lg hidden-sm hiddden-md" style="padding-left:0px;padding-right:0px;">
								<div class="search-box-yuanjiu">
<!-- 									<form style="margin: 0px;" action="cat" method="POST" id="search_mini_form" name="Categories"> -->
<!-- 										<input type="text" placeholder="Search here..." value="" maxlength="70" name="search" id="search-yuanjiu"> -->
<!-- 										<button type="button" class="search-btn-bg-yuanjiu"><span class="glyphicon glyphicon-search"></span></button> -->
<!-- 									</form> -->
								</div>
							</div>
							</div>
						</div>
					</div>
				</div>
			</header>
			<!-- end header -->

			<!-- Navigation -->

			<nav>
				<div class="container">
					<div class="mm-toggle-wrap hidden-xs">
						<div class="mm-toggle"><i class="fa fa-align-justify"></i><span class="mm-label">Menu</span> </div>
					</div>
					<div class="nav-inner">
						<!-- BEGIN NAV -->
						<ul id="nav" class="hidden-xs">
							<li class="drop-menu">
								<a href="home" class="level-top active"><span>首页</span></a>
							</li>
							<c:forEach items="${categoryList}" var="catItem">
								<li class="mega-menu">
								<a class="level-top" href="shop_grids?cid=${catItem.id}"><span>${catItem.cat}</span></a>
								</li>
							</c:forEach>
						</ul>
					</div>
				</div>
			</nav>
			<!-- end nav -->

			<!-- First floor -->
			<div id="item1" class="container" >
				<div class="row">
					<div class="col-lg-8"><span style="font-family:'新宋体';font-size: 26px;"><img src="images/1F.png">猜你喜欢</span></div>
					<div class="col-lg-4"> </div>
				</div>
				<div class="row">
					<div class="col-sm-12 col-lg-12" >
						<table class="table table-striped" style="border-top:2px solid red;" >
							<tr >
								<c:forEach items="${ListHot}" var="itemHot" begin="0" step="2">
									<td >
										<div class="thumbnail" id="product-img" onclick="location.href='single_product?id=${itemHot.id}'">
											<img src="${itemHot.pic}" alt="..." style="width: 200px;height: 200px;">
											<div class="caption">
												<h5>
													<c:choose>
														<c:when test="${itemHot.webCode=='1'}">
															[酒仙]
														</c:when>
														<c:otherwise>
															[1919]
														</c:otherwise>
													</c:choose>										
												 	${itemHot.title}
												 </h5>
												<p>￥${itemHot.valueSell}</p>
												<p>
												</p>
											</div>
										</div>
									</td>
								</c:forEach>
							</tr>
							<tr>
								<c:forEach items="${ListHot}" var="itemHot" begin="1" step="2">
									<td >
										<div class="thumbnail" id="product-img"  onclick="location.href='single_product?id=${itemHot.id}'">
											<img src="${itemHot.pic}" alt="..." style="width: 200px;height: 200px;">
											<div class="caption">
												<h5>
													<c:choose>
														<c:when test="${itemHot.webCode=='1'}">
															[酒仙]
														</c:when>
														<c:otherwise>
															[1919]
														</c:otherwise>
													</c:choose>										
												 	${itemHot.title}
												 </h5>
												<p>￥${itemHot.valueSell}</p>
												<p>
												</p>
											</div>
										</div>
									</td>
								</c:forEach>
							</tr>
							
						</table>
					</div>
					
				</div>

			</div>
			<!-- end First floor -->
			<!-- Second floor -->
			<div id="item2" class="container" >
				<div class="row">
					<div class="col-lg-8"><span style="font-family:'新宋体';font-size: 26px;"><img src="images/2F.png">白酒馆</span></div>
					<div class="col-lg-4"> </div>
				</div>
				<div class="row">
					<div class="col-sm-12 col-lg-12" >
						<table class="table table-striped" style="border-top:2px solid red;" >
							<tr >
								<c:forEach items="${listB}" var="itemB" begin="0" step="2">
									<td >
										<div class="thumbnail" id="product-img"  onclick="location.href='single_product?id=${itemB.id}'">
											<img src="${itemB.pic}" alt="..." style="width: 200px;height: 200px;">
											<div class="caption">
												<h5>
													<c:choose>
														<c:when test="${itemB.webCode=='1'}">
															[酒仙]
														</c:when>
														<c:otherwise>
															[1919]
														</c:otherwise>
													</c:choose>										
												 	${itemB.title}
												 </h5>
												<p>￥${itemB.valueSell}</p>
												<p>
												</p>
											</div>
										</div>
									</td>
								</c:forEach>
								
							</tr>
							<tr>
								
								<c:forEach items="${listB}" var="itemB" begin="1" step="2">
									<td >
										<div class="thumbnail" id="product-img"  onclick="location.href='single_product?id=${itemB.id}'">
											<img src="${itemB.pic}" alt="..." style="width: 200px;height: 200px;">
											<div class="caption">
												<h5>
													<c:choose>
														<c:when test="${itemB.webCode=='1'}">
															[酒仙]
														</c:when>
														<c:otherwise>
															[1919]
														</c:otherwise>
													</c:choose>										
												 	${itemB.title}
												 </h5>
												<p>￥${itemB.valueSell}</p>
												<p>
												</p>
											</div>
										</div>
									</td>
								</c:forEach>
							</tr>
							
						</table>
					</div>
					
				</div>

			</div>
			<!-- end Second floor -->
			
			<!-- Third floor -->
			<div id="item3" class="container" >
				<div class="row">
					<div class="col-lg-8"><span style="font-family:'新宋体';font-size: 26px;"><img src="images/3F.png">葡萄酒馆</span></div>
					<div class="col-lg-4"></div>
				</div>
				<div class="row">
					<div class="col-sm-12 col-lg-12" >
						<table class="table table-striped" style="border-top:2px solid #FEA712;" >
							<tr >
								
								<c:forEach items="${listPu}" var="itemPu" begin="0" step="2">
									<td >
										<div class="thumbnail" id="product-img"  onclick="location.href='single_product?id=${itemPu.id}'">
											<img src="${itemPu.pic}" alt="..." style="width: 200px;height: 200px;">
											<div class="caption">
												<h5>
													<c:choose>
														<c:when test="${itemPu.webCode=='1'}">
															[酒仙]
														</c:when>
														<c:otherwise>
															[1919]
														</c:otherwise>
													</c:choose>										
												 	${itemPu.title}
												 </h5>
												<p>￥${itemPu.valueSell}</p>
												<p>
												</p>
											</div>
										</div>
									</td>
								</c:forEach>
							</tr>
							<tr>
								
								<c:forEach items="${listPu}" var="itemPu" begin="1" step="2">
									<td >
										<div class="thumbnail" id="product-img"  onclick="location.href='single_product?id=${itemPu.id}'">
											<img src="${itemPu.pic}" alt="..." style="width: 200px;height: 200px;">
											<div class="caption">
												<h5>
													<c:choose>
														<c:when test="${itemPu.webCode=='1'}">
															[酒仙]
														</c:when>
														<c:otherwise>
															[1919]
														</c:otherwise>
													</c:choose>										
												 	${itemPu.title}
												 </h5>
												<p>￥${itemPu.valueSell}</p>
												<p>
												</p>
											</div>
										</div>
									</td>
								</c:forEach>
							</tr>
							
						</table>
					</div>
					
				</div>

			</div>
			<!-- end Third floor -->
			
			<!-- Fourth floor -->
			<div id="item4" class="container" >
				<div class="row">
					<div class="col-lg-8"><span style="font-family:'新宋体';font-size: 26px;"><img src="images/4F.png">洋酒馆</span></div>
					<div class="col-lg-4"></div>
				</div>
				<div class="row">
					<div class="col-sm-12 col-lg-12" >
						<table class="table table-striped" style="border-top:2px solid #276594;" >
							<tr >
							<c:forEach items="${listY}" var="itemY" begin="0" step="2">
									<td >
										<div class="thumbnail" id="product-img"  onclick="location.href='single_product?id=${itemY.id}'">
											<img src="${itemY.pic}" alt="..." style="width: 200px;height: 200px;">
											<div class="caption">
												<h5>
													<c:choose>
														<c:when test="${itemY.webCode=='1'}">
															[酒仙]
														</c:when>
														<c:otherwise>
															[1919]
														</c:otherwise>
													</c:choose>										
												 	${itemY.title}
												 </h5>
												<p>￥${itemY.valueSell}</p>
												<p>
												</p>
											</div>
										</div>
									</td>
								</c:forEach>
							</tr>
							<tr>
							<c:forEach items="${listY}" var="itemY" begin="1" step="2">
									<td >
										<div class="thumbnail" id="product-img"  onclick="location.href='single_product?id=${itemY.id}'">
											<img src="${itemY.pic}" alt="..." style="width: 200px;height: 200px;">
											<div class="caption">
												<h5>
													<c:choose>
														<c:when test="${itemY.webCode=='1'}">
															[酒仙]
														</c:when>
														<c:otherwise>
															[1919]
														</c:otherwise>
													</c:choose>										
												 	${itemY.title}
												 </h5>
												<p>￥${itemY.valueSell}</p>
												<p>
												</p>
											</div>
										</div>
									</td>
								</c:forEach>
							</tr>
							
						</table>
					</div>
					
				</div>

			</div>
			<!-- end Fourth floor -->
			<!-- Fifth floor -->
			<div id="item5" class="container" >
				<div class="row">
					<div class="col-lg-8"><span style="font-family:'新宋体';font-size: 26px;"><img src="images/5F.png">啤酒馆</span></div>
					<div class="col-lg-4"> </div>
				</div>
				<div class="row">
					<div class="col-sm-12 col-lg-12" >
						<table class="table table-striped" style="border-top:2px solid red;" >
							<tr >
							<c:forEach items="${listP}" var="itemP" begin="0" step="2">
									<td >
										<div class="thumbnail" id="product-img"  onclick="location.href='single_product?id=${itemP.id}'">
											<img src="${itemP.pic}" alt="..." style="width: 200px;height: 200px;">
											<div class="caption">
												<h5>
													<c:choose>
														<c:when test="${itemP.webCode=='1'}">
															[酒仙]
														</c:when>
														<c:otherwise>
															[1919]
														</c:otherwise>
													</c:choose>										
												 	${itemP.title}
												 </h5>
												<p>￥${itemP.valueSell}</p>
												<p>
												</p>
											</div>
										</div>
									</td>
								</c:forEach>
							</tr>
							<tr>
							<c:forEach items="${listP}" var="itemP" begin="1" step="2">
									<td >
										<div class="thumbnail" id="product-img"  onclick="location.href='single_product?id=${itemP.id}'">
											<img src="${itemP.pic}" alt="..." style="width: 200px;height: 200px;">
											<div class="caption">
												<h5>
													<c:choose>
														<c:when test="${itemP.webCode=='1'}">
															[酒仙]
														</c:when>
														<c:otherwise>
															[1919]
														</c:otherwise>
													</c:choose>										
												 	${itemP.title}
												 </h5>
												<p>￥${itemP.valueSell}</p>
												<p>
												</p>
											</div>
										</div>
									</td>
								</c:forEach>
							</tr>
							
						</table>
					</div>
					
				</div>

			</div>
			<!-- end Fifth floor -->
			<!-- Sixth floor -->
			<div id="item6" class="container" >
				<div class="row">
					<div class="col-lg-8"><span style="font-family:'新宋体';font-size: 26px;"><img src="images/6F.png">黄酒/果酒馆</span></div>
					<div class="col-lg-4"> </div>
				</div>
				<div class="row">
					<div class="col-sm-12 col-lg-12" >
						<table class="table table-striped" style="border-top:2px solid red;" >
							<tr >
							<c:forEach items="${listH}" var="itemH" begin="0" step="2">
									<td >
										<div class="thumbnail" id="product-img"  onclick="location.href='single_product?id=${itemH.id}'">
											<img src="${itemH.pic}" alt="..." style="width: 200px;height: 200px;">
											<div class="caption">
												<h5>
													<c:choose>
														<c:when test="${itemH.webCode=='1'}">
															[酒仙]
														</c:when>
														<c:otherwise>
															[1919]
														</c:otherwise>
													</c:choose>										
												 	${itemH.title}
												 </h5>
												<p>￥${itemH.valueSell}</p>
												<p>
												</p>
											</div>
										</div>
									</td>
								</c:forEach>
							</tr>
							<tr>
								<c:forEach items="${listH}" var="itemH" begin="1" step="2">
									<td >
										<div class="thumbnail" id="product-img"  onclick="location.href='single_product?id=${itemH.id}'">
											<img src="${itemH.pic}" alt="..." style="width: 200px;height: 200px;">
											<div class="caption">
												<h5>
													<c:choose>
														<c:when test="${itemH.webCode=='1'}">
															[酒仙]
														</c:when>
														<c:otherwise>
															[1919]
														</c:otherwise>
													</c:choose>										
												 	${itemH.title}
												 </h5>
												<p>￥${itemH.valueSell}</p>
												<p>
												</p>
											</div>
										</div>
									</td>
								</c:forEach>
							</tr>
							
						</table>
					</div>
					
				</div>

			</div>

			<!-- Footer -->
			<footer style="height:50px;padding-top:10px;text-align:center;">
				<div class="footer-word">
					©缘酒网							
				</div>
			</footer>
				<!-- bootstrap js -->
				<script type="text/javascript" src="js/bootstrap.min.js"></script>
				<!-- owl.carousel.min js -->
				<script type="text/javascript" src="js/owl.carousel.min.js"></script>
				<!-- jtv-jtv-mobile-menu js -->
				<script type="text/javascript" src="js/jtv-mobile-menu.js"></script>
				<!-- countdown js -->
				<script type="text/javascript" src="js/countdown.js"></script>
				<!-- main js -->
				<script type="text/javascript" src="js/main.js"></script>
				<!-- rev-slider js -->
				<script type="text/javascript" src="js/rev-slider.js"></script>
				<script type="text/javascript" src="js/yuanjiu-front.js"></script>
		</div>
	</body>
</html>